#include "config.h"
int main()
{
	uint16 pData[4];
	uint8	led	= FALSE;
	uint32 pmt;
	IRQEnable()	;
	TimerInit()	;
	PumpHeaterIni();
	TmprIni();
	PumpSet(20);
	HeaterSet(50);
	IRQEnable()	;
	MotorInit()	;
	PmtIni();
	
	while(1)
		{
/*	
			TmprGet(pData);
			Sleep(200);
			LedSet(led);
			led	= !led;
*/
			pmt = PmtGetData();
		}
/*
	while(1)
	{
		MotorSetStep(MT_PMT, 1000, 1);
		while(0 != MotorGetStatus(MT_PMT));
		MotorSetStep(MT_PMT, 0, 1);
		while(0 != MotorGetStatus(MT_PMT));
	}
*/
//	while(1);
}
